text:
Strategic Plan 2020-23
ADEPT Jobs
Corporate Partner Membership
Boards & Groups
Subject Boards
Sub-National Boards
Working Groups & Panels
Future Highways Research Group
About Proving Services
FHRG Blog
Strategic Options Analyser toolkit
FHRG FAQs
Live Labs
Live Labs - White Papers
Live Labs Blog
Live Labs End of Year 1 report
Excellence in Place Leadership programme
Excellence in Place Blog
Live Labs YouTube channel
Blueprint sign up - show your support
Meeting Literature
ADEPT Conferences
Climate Change Hub
Climate Change Blog
Support the Blueprint
Excellence in Place Leadership Blog
Covid 19 - Rights of Way survey results
Waste survey results
Latest news and eventsGo back to previous page
Coalition welcomes NAO report – government must work with local authorities to achieve net zero
A coalition of local government, environmental and research organisations has welcomed National Audit Office (NAO) support for increased resourcing to empower local authorities to scale up and coordinate their actions.
The NAO report, Local government and net zero in England, recognises the critical importance of local authorities in achieving net zero and their need for the skills, resource and funding to be able to work effectively. The report also recognises local authorities' ability to drive and support the behavioural change within communities that is needed to reduce emissions.
The Association of Directors of Environment, Economy, Planning and Transport (ADEPT), Ashden, Friends of the Earth, the Grantham Institute at Imperial College, Green Alliance, Greenpeace UK, the London Environment Directors' Network, the Place-Based Climate Action Network at LSE and Solace have come together to highlight the vital role of local authorities in addressing the impacts of climate change. The coalition is supported by the Local Government Association and London Councils.
According to the NAO, 89% of local authorities have adopted at least one commitment to decarbonise their activities. In addition, a third of single and upper tier authorities have adopted a more ambitious commitment to accelerate the decarbonisation of their local area by or before 2030. Despite this, the government has yet to consult with the sector on responsibilities and priorities in order to better support local action.
The coalition agrees with the NAO that because local authorities have responsibility for their local places - particularly in the critical areas of local transport, social housing and waste - their role is essential if we are to meet national decarbonisation targets.
In its recent report, Recognising local authorities as key partners in the Net Zero Strategy, the coalition called on the government to work with local authorities to create a mutually agreed central framework. It also set out four key priorities that the government should adopt to ensure the success of the forthcoming Net Zero Strategy:
A clear commitment to a mutually agreed central framework to embed local authorities as delivery partners in decarbonisation policies. Local government needs long-term, stable funding, realistic timeframes and sufficient support to deliver at both pace and scale.
A clear message that a place-based solution is the best approach for several sectors to ensure that local infrastructure, behaviour and partnership activities are aligned to net zero. National policies will only be delivered when supported by local decision making and behavioural changes.
A cross-departmental approach to working with local authorities. The current siloed approach is a continuous struggle for local authorities and without a collaborative approach, there is a risk that national net zero goals will not be met. Any contradictions in policies and funding programmes must be removed.
Acknowledgement of the wider co-benefits of delivering on decarbonisation policies, and how local authorities can support these in a way that will also deliver better public health, reduce inequalities, restore nature and build thriving local economies.
The Climate Change Committee's Sixth Carbon Budget report (December 2020), also recognised the importance of local authorities working together with government, stating that carbon targets can only be delivered if they "work seamlessly together".
Paula Hewitt, ADEPT President said: "We welcome the NAO's recognition of the key role of local authorities in achieving net zero, but also for putting forward how government could work with us to create a more consistent, effective and efficient approach. Currently, funding for net zero work is fragmented and local authorities need certainty, resources and the ability to develop the necessary skills. We need government to engage with us to develop a common framework and to move to a system wide approach. We must have effective action at the local level."
Sandra Bell, Senior Sustainability Analyst, Friends of the Earth said: "Without action at the local level, the government's own targets for cutting carbon are not going to be met. Local authorities are working with their communities to set out plans for tackling climate change and achieving a green recovery. But even the most ambitious local authorities can find themselves at a logjam, because they lack the long term funding and robust policies from national government which will help them deliver on their local climate action plans. Resourced properly, and with the right powers, local authorities can ensure that everyone benefits from a safer climate, comfortable homes, good quality green jobs and better access to nature."
Philippa Borrowman, policy adviser at Green Alliance said: "Local authorities are more than willing to play their part in addressing climate change and helping achieve the UK's climate targets as shown by the fact that 300 have now declared climate emergencies. But to effectively partner up with central government and cut emissions in their areas, local leaders need more funding, capacity and direction. The government's forthcoming Net Zero Strategy must start to provide some solutions."
The Association of Directors of Environment, Economy, Planning & Transport (ADEPT) brings together directors from county, unitary, metropolitan and combined authorities, along with local enterprise partnerships, sub-national transport bodies and corporate partners drawn from key service sectors. We look after your roads and transport, your environment, your local economy and wellbeing, alongside future plans for your area.
ADEPT is a membership based, voluntary organisation with members across the country. Our primary role is to take the lead in transforming local authorities. We represent members' interests by proactively engaging central Government on emerging policy and issues, and promoting initiatives aimed at influencing Government policy. We achieve this by developing best practices and by responding to EU and UK Government initiatives and consultations. Find out more about us.
You can contact us in the following ways :
ADEPT, 83 Ducie Street, Manchester, M1 2JQ
Media enquiries: please contact Coast Communications 01579 352600
Website Enquiries: please contact the ADEPT Secretariat
Follow us on Twitter: @ADEPTLA
Media enquiries: please contact Coast Communications 01579 352600 | VAT number: 337 0556 05 | Website by Cosmic


CHAMPAGNE has lost its fizz when it comes to weddings with Prosecco now the most popular tipple for toasting the bride and groom, a study found.
Guests at weddings get through an average 150 bottles of wine.
Red wine accounts for the majority at 60 bottles, followed by 45 bottles of white, 44 bottles of sparkling and one bottle of dessert wine.
Sales figures from home-delivery wine merchant Laithwaites reveals the rising popularity of Prosecco, with almost two out of three wedding couples choosing it for their big day compared with just one in 12 who raise a glass of Champagne.
Sales of the Italian sparkling wine have grown by more than a quarter in the past 18 months, officially overtaking Champagne sales at weddings in 2013.
English Sparkling is also proving to be a threat to Champagne as sales continue to boom.
Sparkling wine from the UK now accounts for one in 20 bottles of all sparkling wine drunk at weddings, a figure that is rising each month.
Beth Willard, wine buyer at Laithwaites, said: "It seems inevitable that with the meteoric rise of Prosecco in the last few years, we would start to see a shift from Britain's traditional bubbles of choice.


The Anambra State Police Command, has arrested 26-year-old alleged army deserter, Ebeje Nnamdi, suspected to be an IPOB trainer (Indigenous People of Biafra), alongside three others for their alleged involvement in armed robbery in Iyi Oji area of Anambra on Wednesday.
Parading the suspects to newsmen on Thursday at the police command headquarters in Amawbia, near Awka, the State's Police Commissioner, Mr Garba Umar, said 336 rounds of 7.22x39mm, AK-47 live ammunition were recovered from the alleged (IPOB) members and their trainer.
"Police equally recovered three empty AK-47 riffles with magazines, one locally made double barrel pistol with two live cartridges, (IPOB) wears, IPOB flags, muffler, criminal charms and ATM cards.
"The Army deserter was formally of the 20 Mechanised Battalion, Taraba, in 2014 before he disappeared,'' Umar said.
The Police Commissioner also told newsmen that Nnamdi was a member of a six-man gang responsible for the attacks and killings of policemen at nipping points, robberies at fuel stations including that of Bukachi filling station, Eziowelle, both in Onitsha on Aug. 31, 2017. He further said that suspects would be charged to court after investigation.
Biafra police now armed robbers, I said it earlier that they will turn evil now it's coming out.


text:
Q: Ejecutar función al hacer click en notificación Estoy creando una notificación, deseo que al hacer click en ella se ejecute una función.
//CREO EL CANAL

fun createNotificationChannel(){
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O){
            val importance = NotificationManager.IMPORTANCE_HIGH

            val channel: NotificationChannel = NotificationChannel(channelId,channelName, importance)

            val manager: NotificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager

            manager.createNotificationChannel(channel)
        }
    }

Uso firebaseMessaging para enviar la notificación, luego para mostrarla cuando la app esta en primer plano uso lo siguiente.
class MyFirebaseMessagingService: FirebaseMessagingService() {

    override fun onMessageReceived(p0: RemoteMessage) {

        App.getMainActivity()?.showNotify(p0.notification?.title.toString(),
            p0.notification?.body.toString()

//Extraigo el titulo y contenido luego los envió como parámetro para que se cree la notificación.
        )

    }

}

  fun showNotify(tlNtf:String,ctnNtf:String){
        val notification = NotificationCompat.Builder(this,channelId).also {
            it.setContentTitle(tlNtf)
            it.setContentText(ctnNtf)
            it.setSmallIcon(R.drawable.ic_app_fg)
            it.color = Color.RED
            it.priority = NotificationCompat.PRIORITY_HIGH

        }.build()
        val notificationManager: NotificationManagerCompat = NotificationManagerCompat.from(this)
        notificationManager.notify(notificationId,notification)
    }

Necesito que al hacer click en la notificación se ejecute una función, he leído la documentación sin embargo no encontré nada acerca de eso, se que se puede abrir una actividad con un intent, sin embargo solo necesito que ejecute una función de la actividad en la que me encuentro.
Además no tiendo  por que la notificación no se muestra arriba de la pantalla es decir, llega correctamente pero se va directamente al panel de notificaciones.

Ejemplos de como debería aparecer según un codelab, no aparece de esta forma solo aparece directamente en el panel de notificacion, hay algo que este asiendo mal?

A: Puedes agregar extras en el intent que te sirvan de indicador para saber si la activity fue abierta desde una notificación
fun showNotify(tlNtf: String, ctnNtf: String) {
    val intent = Intent(applicationContext, MainActivity::class.java).apply {
        putExtra("ejecutarFuncion", true)
    }
    val contentIntent = PendingIntent.getActivity(
        applicationContext,
        NOTIFICATION_ID,
        intent,
        PendingIntent.FLAG_UPDATE_CURRENT
    )
    val notification = NotificationCompat.Builder(this, channelId).apply {
        setContentTitle(tlNtf)
        setContentText(ctnNtf)
        setContentIntent(contentIntent)
        setSmallIcon(R.drawable.ic_app_fg)
        color = Color.RED
        priority = NotificationCompat.PRIORITY_HIGH
    }.build()
    val notificationManager = NotificationManagerCompat.from(this)
    notificationManager.notify(notificationId, notification)
}

Luego en tu activity evaluas si el extra existe y ejecutas la función
class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        ...
        if (intent.hasExtra("ejecutarFunction")) doSomething()
    }

    fun doSomething() {}

}

Para casos simples como el ejemplo anterior ni siquiera necesitas consultar el valor del extra pero si quieres ejecutar distintas funciones, deberás leer el valor. Por ejemplo así
Intent
putExtra("function", "fun2")

Activity
if (intent.hasExtra("function")) {
    when (intent.getStringExtra("function")) {
        "fun1" -> function1()
        "fun2" -> function2()
        "fun3" -> function3()
    }
}

redpajama_set_name: RedPajamaStackExchange